/*
 * @Author: zhuxiaoyi
 * @Date: 2023-12-07 09:44:44
 * @LastEditor: zhuxiaoyi
 * @LastEditTime: 2023-12-07 14:05:09
 * @Description: 
 */
const express = require('express');
const app = express();

// 使用内置的express.json()中间件处理JSON请求体
app.use(express.json());

// 引入API路由
const modelApi = require("../routes/api/modelApi");

// 使用API路由
app.use("/web-api/model", modelApi);

const PORT = 18081;
app.listen(PORT, () => {
    console.log(`Server is running on http://localhost:${PORT}`);
});
